<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en-US">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.9.7"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>DGRv2: ns3::DGRPacketSink Class Reference</title>
<link href="../../tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../jquery.js"></script>
<script type="text/javascript" src="../../dynsections.js"></script>
<link href="../../navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../resize.js"></script>
<script type="text/javascript" src="../../navtreedata.js"></script>
<script type="text/javascript" src="../../navtree.js"></script>
<link href="../../search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../search/searchdata.js"></script>
<script type="text/javascript" src="../../search/search.js"></script>
<link href="../../doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr id="projectrow">
  <td id="projectalign">
   <div id="projectname">DGRv2<span id="projectnumber">&#160;2-dev</span>
   </div>
   <div id="projectbrief">A Delay-Guaranteed Routing Protocol model in ns-3</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.9.7 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "../../search/",'.html');
/* @license-end */
</script>
<script type="text/javascript" src="../../menudata.js"></script>
<script type="text/javascript" src="../../menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() {
  initMenu('../../',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */
</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(document).ready(function(){initNavTree('dc/d11/classns3_1_1_d_g_r_packet_sink.html','../../'); initResizable(); });
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<div id="MSearchResults">
<div class="SRPage">
<div id="SRIndex">
<div id="SRResults"></div>
<div class="SRStatus" id="Loading">Loading...</div>
<div class="SRStatus" id="Searching">Searching...</div>
<div class="SRStatus" id="NoMatches">No Matches</div>
</div>
</div>
</div>
</div>

<div class="header">
  <div class="summary">
<a href="#nested-classes">Classes</a> &#124;
<a href="#pub-types">Public Types</a> &#124;
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pub-static-methods">Static Public Member Functions</a> &#124;
<a href="#pro-methods">Protected Member Functions</a> &#124;
<a href="#pri-methods">Private Member Functions</a> &#124;
<a href="#pri-attribs">Private Attributes</a> &#124;
<a href="../../df/d0d/classns3_1_1_d_g_r_packet_sink-members.html">List of all members</a>  </div>
  <div class="headertitle"><div class="title">ns3::DGRPacketSink Class Reference<div class="ingroups"><a class="el" href="../../d3/d8b/group__packetsink.html">PacketSink</a></div></div></div>
</div><!--header-->
<div class="contents">

<p>Receive and consume traffic generated to an IP address and port.  
 <a href="../../dc/d11/classns3_1_1_d_g_r_packet_sink.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="../../df/d56/dgr-sink_8h_source.html">dgr-sink.h</a>&gt;</code></p>
<div id="dynsection-0" onclick="return toggleVisibility(this)" class="dynheader closed" style="cursor:pointer;">
  <img id="dynsection-0-trigger" src="../../closed.png" alt="+"/> Inheritance diagram for ns3::DGRPacketSink:</div>
<div id="dynsection-0-summary" class="dynsummary" style="display:block;">
</div>
<div id="dynsection-0-content" class="dyncontent" style="display:none;">
<div class="center"><img src="../../db/d21/classns3_1_1_d_g_r_packet_sink__inherit__graph.png" border="0" usemap="#ans3_1_1_d_g_r_packet_sink_inherit__map" alt="Inheritance graph"/></div>
<map name="ans3_1_1_d_g_r_packet_sink_inherit__map" id="ans3_1_1_d_g_r_packet_sink_inherit__map">
<area shape="rect" title="Receive and consume traffic generated to an IP address and port." alt="" coords="5,79,157,104"/>
<area shape="rect" href="../../de/d6b/class_application.html" title=" " alt="" coords="34,5,129,31"/>
<area shape="poly" title=" " alt="" coords="84,44,84,79,79,79,79,44"/>
</map>
<center><span class="legend">[<a target="top" href="../../graph_legend.html">legend</a>]</span></center></div>
<div id="dynsection-1" onclick="return toggleVisibility(this)" class="dynheader closed" style="cursor:pointer;">
  <img id="dynsection-1-trigger" src="../../closed.png" alt="+"/> Collaboration diagram for ns3::DGRPacketSink:</div>
<div id="dynsection-1-summary" class="dynsummary" style="display:block;">
</div>
<div id="dynsection-1-content" class="dyncontent" style="display:none;">
<div class="center"><img src="../../d2/d24/classns3_1_1_d_g_r_packet_sink__coll__graph.png" border="0" usemap="#ans3_1_1_d_g_r_packet_sink_coll__map" alt="Collaboration graph"/></div>
<map name="ans3_1_1_d_g_r_packet_sink_coll__map" id="ans3_1_1_d_g_r_packet_sink_coll__map">
<area shape="rect" title="Receive and consume traffic generated to an IP address and port." alt="" coords="963,440,1115,465"/>
<area shape="rect" href="../../de/d6b/class_application.html" title=" " alt="" coords="576,12,671,37"/>
<area shape="poly" title=" " alt="" coords="684,10,744,4,812,5,846,11,880,21,912,35,941,56,962,85,981,130,997,184,1010,244,1029,361,1039,439,1033,440,1024,361,1005,245,992,186,976,132,958,88,937,60,909,40,878,26,845,16,811,11,744,9,685,15"/>
<area shape="rect" title=" " alt="" coords="536,160,711,230"/>
<area shape="poly" title=" " alt="" coords="725,203,778,214,834,231,890,254,940,286,977,323,1004,366,1024,408,1036,438,1031,440,1019,410,1000,369,972,327,937,290,887,259,832,236,776,219,724,208"/>
<area shape="rect" title=" " alt="" coords="196,80,271,105"/>
<area shape="poly" title=" " alt="" coords="284,80,412,66,496,63,587,66,681,78,774,101,819,118,862,138,903,163,940,192,967,220,989,253,1005,289,1018,325,1033,392,1039,439,1034,439,1028,393,1013,326,1000,291,984,256,963,223,937,196,900,167,859,143,817,123,772,106,680,83,586,71,496,68,413,71,284,86"/>
<area shape="poly" title=" " alt="" coords="285,98,380,117,489,144,536,160,535,165,487,149,379,123,284,104"/>
<area shape="rect" title=" " alt="" coords="177,144,289,169"/>
<area shape="poly" title=" " alt="" coords="303,160,536,184,536,189,302,166"/>
<area shape="rect" title=" " alt="" coords="157,206,309,246"/>
<area shape="poly" title=" " alt="" coords="323,227,333,227,411,231,488,227,535,218,536,223,488,232,411,236,333,232,323,232"/>
<area shape="rect" title=" " alt="" coords="5,180,44,205"/>
<area shape="poly" title=" " alt="" coords="58,195,157,211,157,216,57,200"/>
<area shape="rect" title=" " alt="" coords="5,249,44,274"/>
<area shape="poly" title=" " alt="" coords="57,253,157,236,158,241,58,259"/>
<area shape="rect" title=" " alt="" coords="179,270,287,296"/>
<area shape="poly" title=" " alt="" coords="57,275,69,279,125,286,179,286,179,291,125,291,67,284,56,281"/>
<area shape="rect" title=" " alt="" coords="177,333,290,358"/>
<area shape="poly" title=" " alt="" coords="304,344,425,349,584,361,761,381,939,414,1009,437,1008,442,938,419,761,386,583,366,424,354,304,350"/>
<area shape="rect" title=" " alt="" coords="528,301,719,326"/>
<area shape="poly" title=" " alt="" coords="304,337,527,319,528,324,304,343"/>
<area shape="poly" title=" " alt="" coords="732,304,783,306,836,312,889,325,940,345,971,365,997,391,1032,438,1028,441,993,394,967,369,937,349,888,330,835,318,782,311,732,309"/>
<area shape="poly" title=" " alt="" coords="302,286,528,303,528,309,301,291"/>
<area shape="rect" title=" " alt="" coords="586,414,661,440"/>
<area shape="poly" title=" " alt="" coords="675,427,963,445,962,450,674,433"/>
<area shape="rect" title=" " alt="" coords="591,464,655,489"/>
<area shape="poly" title=" " alt="" coords="669,475,791,476,938,468,979,462,980,468,939,474,791,481,669,481"/>
<area shape="rect" title=" " alt="" coords="515,513,731,538"/>
<area shape="poly" title=" " alt="" coords="745,524,840,516,938,498,980,482,1015,463,1018,468,982,486,939,503,841,521,745,529"/>
<area shape="rect" title=" " alt="" coords="598,562,649,588"/>
<area shape="poly" title=" " alt="" coords="662,576,718,579,789,577,865,567,902,557,938,543,966,526,991,504,1026,463,1030,467,995,508,969,530,940,548,904,562,866,572,789,583,718,585,662,582"/>
<area shape="rect" title=" " alt="" coords="535,612,711,666"/>
<area shape="poly" title=" " alt="" coords="725,645,777,644,832,637,887,623,937,599,973,569,1000,531,1019,493,1031,464,1036,466,1024,495,1004,533,976,572,940,604,889,628,833,642,777,649,725,651"/>
<area shape="rect" title=" " alt="" coords="513,690,733,745"/>
<area shape="poly" title=" " alt="" coords="747,722,796,718,846,708,894,692,937,666,961,644,980,618,1009,560,1025,505,1033,465,1038,466,1030,506,1014,562,985,621,964,648,940,670,896,696,847,714,796,723,747,727"/>
<area shape="rect" title=" " alt="" coords="512,770,735,839"/>
<area shape="poly" title=" " alt="" coords="748,806,797,801,847,789,895,770,937,742,966,711,988,674,1006,634,1018,593,1031,517,1035,465,1040,465,1036,518,1023,594,1011,635,993,676,970,714,940,746,897,775,849,795,798,806,748,812"/>
</map>
<center><span class="legend">[<a target="top" href="../../graph_legend.html">legend</a>]</span></center></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="nested-classes" name="nested-classes"></a>
Classes</h2></td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../dc/db3/structns3_1_1_d_g_r_packet_sink_1_1_address_hash.html">AddressHash</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight">Hashing for the Address class.  <a href="../../dc/db3/structns3_1_1_d_g_r_packet_sink_1_1_address_hash.html#details">More...</a><br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-types" name="pub-types"></a>
Public Types</h2></td></tr>
<tr class="memitem:aaaeda043e3212ff79237c9eb7f7afa6d"><td class="memItemLeft" align="right" valign="top">typedef void(*&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../dc/d11/classns3_1_1_d_g_r_packet_sink.html#aaaeda043e3212ff79237c9eb7f7afa6d">SeqTsSizeCallback</a>) (Ptr&lt; const Packet &gt; p, const Address &amp;from, const Address &amp;to, const SeqTsSizeHeader &amp;header)</td></tr>
<tr class="memdesc:aaaeda043e3212ff79237c9eb7f7afa6d"><td class="mdescLeft">&#160;</td><td class="mdescRight">TracedCallback signature for a reception with addresses and SeqTsSizeHeader.  <br /></td></tr>
<tr class="separator:aaaeda043e3212ff79237c9eb7f7afa6d"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-methods" name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a3aecd00e57b3a656096239773f304c9f"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../dc/d11/classns3_1_1_d_g_r_packet_sink.html#a3aecd00e57b3a656096239773f304c9f">DGRPacketSink</a> ()</td></tr>
<tr class="separator:a3aecd00e57b3a656096239773f304c9f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a605c00d50c8640e3dfbbdc517771aec6"><td class="memItemLeft" align="right" valign="top">virtual&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../dc/d11/classns3_1_1_d_g_r_packet_sink.html#a605c00d50c8640e3dfbbdc517771aec6">~DGRPacketSink</a> ()</td></tr>
<tr class="separator:a605c00d50c8640e3dfbbdc517771aec6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2a9115096ef93e8b69846aaca86973f6"><td class="memItemLeft" align="right" valign="top">std::list&lt; Ptr&lt; Socket &gt; &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../dc/d11/classns3_1_1_d_g_r_packet_sink.html#a2a9115096ef93e8b69846aaca86973f6">GetAcceptedSockets</a> (void) const</td></tr>
<tr class="separator:a2a9115096ef93e8b69846aaca86973f6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a01e725bd9c630ab59e304d7ed5acf8d4"><td class="memItemLeft" align="right" valign="top">Time&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../dc/d11/classns3_1_1_d_g_r_packet_sink.html#a01e725bd9c630ab59e304d7ed5acf8d4">GetDelay</a> (const Ptr&lt; Packet &gt; &amp;p) const</td></tr>
<tr class="separator:a01e725bd9c630ab59e304d7ed5acf8d4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac98581dc7987443224fd7237a12eb006"><td class="memItemLeft" align="right" valign="top">Ptr&lt; Socket &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../dc/d11/classns3_1_1_d_g_r_packet_sink.html#ac98581dc7987443224fd7237a12eb006">GetListeningSocket</a> (void) const</td></tr>
<tr class="separator:ac98581dc7987443224fd7237a12eb006"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a69231f2139fbdd7948cff8c9edccdca4"><td class="memItemLeft" align="right" valign="top">uint64_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../dc/d11/classns3_1_1_d_g_r_packet_sink.html#a69231f2139fbdd7948cff8c9edccdca4">GetTotalRx</a> () const</td></tr>
<tr class="separator:a69231f2139fbdd7948cff8c9edccdca4"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-static-methods" name="pub-static-methods"></a>
Static Public Member Functions</h2></td></tr>
<tr class="memitem:a558f3df30ebf65ef9ce9d22106fbd8bc"><td class="memItemLeft" align="right" valign="top">static TypeId&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../dc/d11/classns3_1_1_d_g_r_packet_sink.html#a558f3df30ebf65ef9ce9d22106fbd8bc">GetTypeId</a> (void)</td></tr>
<tr class="memdesc:a558f3df30ebf65ef9ce9d22106fbd8bc"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get the type ID.  <br /></td></tr>
<tr class="separator:a558f3df30ebf65ef9ce9d22106fbd8bc"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pro-methods" name="pro-methods"></a>
Protected Member Functions</h2></td></tr>
<tr class="memitem:adf51db7e24937d3c73a6669de841d61f"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../dc/d11/classns3_1_1_d_g_r_packet_sink.html#adf51db7e24937d3c73a6669de841d61f">DoDispose</a> (void)</td></tr>
<tr class="separator:adf51db7e24937d3c73a6669de841d61f"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pri-methods" name="pri-methods"></a>
Private Member Functions</h2></td></tr>
<tr class="memitem:a60bdb8ea5bb655c1b77220963b2531d7"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../dc/d11/classns3_1_1_d_g_r_packet_sink.html#a60bdb8ea5bb655c1b77220963b2531d7">HandleAccept</a> (Ptr&lt; Socket &gt; socket, const Address &amp;from)</td></tr>
<tr class="memdesc:a60bdb8ea5bb655c1b77220963b2531d7"><td class="mdescLeft">&#160;</td><td class="mdescRight">Handle an incoming connection.  <br /></td></tr>
<tr class="separator:a60bdb8ea5bb655c1b77220963b2531d7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4cdd5cf57dd8475e5d6656bf877dc220"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../dc/d11/classns3_1_1_d_g_r_packet_sink.html#a4cdd5cf57dd8475e5d6656bf877dc220">HandlePeerClose</a> (Ptr&lt; Socket &gt; socket)</td></tr>
<tr class="memdesc:a4cdd5cf57dd8475e5d6656bf877dc220"><td class="mdescLeft">&#160;</td><td class="mdescRight">Handle an connection close.  <br /></td></tr>
<tr class="separator:a4cdd5cf57dd8475e5d6656bf877dc220"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae1f5b327422a264e50a57a45010c5b95"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../dc/d11/classns3_1_1_d_g_r_packet_sink.html#ae1f5b327422a264e50a57a45010c5b95">HandlePeerError</a> (Ptr&lt; Socket &gt; socket)</td></tr>
<tr class="memdesc:ae1f5b327422a264e50a57a45010c5b95"><td class="mdescLeft">&#160;</td><td class="mdescRight">Handle an connection error.  <br /></td></tr>
<tr class="separator:ae1f5b327422a264e50a57a45010c5b95"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5bc1c04b2b572ae2197853efeceb650e"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../dc/d11/classns3_1_1_d_g_r_packet_sink.html#a5bc1c04b2b572ae2197853efeceb650e">HandleRead</a> (Ptr&lt; Socket &gt; socket)</td></tr>
<tr class="memdesc:a5bc1c04b2b572ae2197853efeceb650e"><td class="mdescLeft">&#160;</td><td class="mdescRight">Handle a packet received by the application.  <br /></td></tr>
<tr class="separator:a5bc1c04b2b572ae2197853efeceb650e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac45b59904bfc3ab8c3beeafa3b66abfb"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../dc/d11/classns3_1_1_d_g_r_packet_sink.html#ac45b59904bfc3ab8c3beeafa3b66abfb">PacketReceived</a> (const Ptr&lt; Packet &gt; &amp;p, const Address &amp;from, const Address &amp;localAddress)</td></tr>
<tr class="memdesc:ac45b59904bfc3ab8c3beeafa3b66abfb"><td class="mdescLeft">&#160;</td><td class="mdescRight">Packet received: assemble byte stream to extract SeqTsSizeHeader.  <br /></td></tr>
<tr class="separator:ac45b59904bfc3ab8c3beeafa3b66abfb"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abe7e96a9e41ed5e769ffc06a20cc775f"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../dc/d11/classns3_1_1_d_g_r_packet_sink.html#abe7e96a9e41ed5e769ffc06a20cc775f">StartApplication</a> (void)</td></tr>
<tr class="separator:abe7e96a9e41ed5e769ffc06a20cc775f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aeb7f67c80886d5d2f24c23878f632508"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../dc/d11/classns3_1_1_d_g_r_packet_sink.html#aeb7f67c80886d5d2f24c23878f632508">StopApplication</a> (void)</td></tr>
<tr class="separator:aeb7f67c80886d5d2f24c23878f632508"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pri-attribs" name="pri-attribs"></a>
Private Attributes</h2></td></tr>
<tr class="memitem:a50309ac35d6ee3c3bf8ed1aac032b18c"><td class="memItemLeft" align="right" valign="top">std::unordered_map&lt; Address, Ptr&lt; Packet &gt;, <a class="el" href="../../dc/db3/structns3_1_1_d_g_r_packet_sink_1_1_address_hash.html">AddressHash</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../dc/d11/classns3_1_1_d_g_r_packet_sink.html#a50309ac35d6ee3c3bf8ed1aac032b18c">m_buffer</a></td></tr>
<tr class="memdesc:a50309ac35d6ee3c3bf8ed1aac032b18c"><td class="mdescLeft">&#160;</td><td class="mdescRight">Buffer for received packets.  <br /></td></tr>
<tr class="separator:a50309ac35d6ee3c3bf8ed1aac032b18c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2c42e5892ce165db37a2bd47436e4fb8"><td class="memItemLeft" align="right" valign="top">Ptr&lt; OutputStreamWrapper &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../dc/d11/classns3_1_1_d_g_r_packet_sink.html#a2c42e5892ce165db37a2bd47436e4fb8">m_delayStream</a></td></tr>
<tr class="separator:a2c42e5892ce165db37a2bd47436e4fb8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac803f6a1d59503d2a5914f3c9a7f33ec"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../dc/d11/classns3_1_1_d_g_r_packet_sink.html#ac803f6a1d59503d2a5914f3c9a7f33ec">m_enableSeqTsSizeHeader</a> {false}</td></tr>
<tr class="memdesc:ac803f6a1d59503d2a5914f3c9a7f33ec"><td class="mdescLeft">&#160;</td><td class="mdescRight">Enable or disable the export of SeqTsSize header.  <br /></td></tr>
<tr class="separator:ac803f6a1d59503d2a5914f3c9a7f33ec"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7f9d4d540e2faa7004c3047913a29f09"><td class="memItemLeft" align="right" valign="top">Address&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../dc/d11/classns3_1_1_d_g_r_packet_sink.html#a7f9d4d540e2faa7004c3047913a29f09">m_local</a></td></tr>
<tr class="memdesc:a7f9d4d540e2faa7004c3047913a29f09"><td class="mdescLeft">&#160;</td><td class="mdescRight">Local address to bind to.  <br /></td></tr>
<tr class="separator:a7f9d4d540e2faa7004c3047913a29f09"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aca03544d5c0deea1c5f900d89037e8ed"><td class="memItemLeft" align="right" valign="top">TracedCallback&lt; Ptr&lt; const Packet &gt;, const Address &amp; &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../dc/d11/classns3_1_1_d_g_r_packet_sink.html#aca03544d5c0deea1c5f900d89037e8ed">m_rxTrace</a></td></tr>
<tr class="memdesc:aca03544d5c0deea1c5f900d89037e8ed"><td class="mdescLeft">&#160;</td><td class="mdescRight">Traced Callback: received packets, source address.  <br /></td></tr>
<tr class="separator:aca03544d5c0deea1c5f900d89037e8ed"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a79fa3105c5e8709d6d2619a7665ce751"><td class="memItemLeft" align="right" valign="top">TracedCallback&lt; Ptr&lt; const Packet &gt;, const Address &amp;, const Address &amp; &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../dc/d11/classns3_1_1_d_g_r_packet_sink.html#a79fa3105c5e8709d6d2619a7665ce751">m_rxTraceWithAddresses</a></td></tr>
<tr class="memdesc:a79fa3105c5e8709d6d2619a7665ce751"><td class="mdescLeft">&#160;</td><td class="mdescRight">Callback for tracing the packet Rx events, includes source and destination addresses.  <br /></td></tr>
<tr class="separator:a79fa3105c5e8709d6d2619a7665ce751"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2d3c05d2d32ce064ce1ad0b46564bcfb"><td class="memItemLeft" align="right" valign="top">TracedCallback&lt; Ptr&lt; const Packet &gt;, const Address &amp;, const Address &amp;, const SeqTsSizeHeader &amp; &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../dc/d11/classns3_1_1_d_g_r_packet_sink.html#a2d3c05d2d32ce064ce1ad0b46564bcfb">m_rxTraceWithSeqTsSize</a></td></tr>
<tr class="memdesc:a2d3c05d2d32ce064ce1ad0b46564bcfb"><td class="mdescLeft">&#160;</td><td class="mdescRight">Callbacks for tracing the packet Rx events, includes source, destination addresses, and headers.  <br /></td></tr>
<tr class="separator:a2d3c05d2d32ce064ce1ad0b46564bcfb"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a253617e51eb9048d70dca28e2cb2806b"><td class="memItemLeft" align="right" valign="top">Ptr&lt; Socket &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../dc/d11/classns3_1_1_d_g_r_packet_sink.html#a253617e51eb9048d70dca28e2cb2806b">m_socket</a></td></tr>
<tr class="memdesc:a253617e51eb9048d70dca28e2cb2806b"><td class="mdescLeft">&#160;</td><td class="mdescRight">Listening socket.  <br /></td></tr>
<tr class="separator:a253617e51eb9048d70dca28e2cb2806b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1d21d3eae077fdf088eda04bf2652d97"><td class="memItemLeft" align="right" valign="top">std::list&lt; Ptr&lt; Socket &gt; &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../dc/d11/classns3_1_1_d_g_r_packet_sink.html#a1d21d3eae077fdf088eda04bf2652d97">m_socketList</a></td></tr>
<tr class="memdesc:a1d21d3eae077fdf088eda04bf2652d97"><td class="mdescLeft">&#160;</td><td class="mdescRight">the accepted sockets  <br /></td></tr>
<tr class="separator:a1d21d3eae077fdf088eda04bf2652d97"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5df24d6eacd919ec2f0f944d520cb535"><td class="memItemLeft" align="right" valign="top">TypeId&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../dc/d11/classns3_1_1_d_g_r_packet_sink.html#a5df24d6eacd919ec2f0f944d520cb535">m_tid</a></td></tr>
<tr class="memdesc:a5df24d6eacd919ec2f0f944d520cb535"><td class="mdescLeft">&#160;</td><td class="mdescRight">Protocol TypeId.  <br /></td></tr>
<tr class="separator:a5df24d6eacd919ec2f0f944d520cb535"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa1eed0d34ee99dbaea2af47a795b70ca"><td class="memItemLeft" align="right" valign="top">uint64_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../dc/d11/classns3_1_1_d_g_r_packet_sink.html#aa1eed0d34ee99dbaea2af47a795b70ca">m_totalRx</a></td></tr>
<tr class="memdesc:aa1eed0d34ee99dbaea2af47a795b70ca"><td class="mdescLeft">&#160;</td><td class="mdescRight">Total bytes received.  <br /></td></tr>
<tr class="separator:aa1eed0d34ee99dbaea2af47a795b70ca"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>Receive and consume traffic generated to an IP address and port. </p>
<p>This application was written to complement OnOffApplication, but it is more general so a PacketSink name was selected. Functionally it is important to use in multicast situations, so that reception of the layer-2 multicast frames of interest are enabled, but it is also useful for unicast as an example of how you can write something simple to receive packets at the application layer. Also, if an IP stack generates ICMP Port Unreachable errors, receiving applications will be needed.</p>
<p>The constructor specifies the Address (IP address and port) and the transport protocol to use. A virtual Receive () method is installed as a callback on the receiving socket. By default, when logging is enabled, it prints out the size of packets and their address. A tracing source to Receive() is also available. </p>

<p class="definition">Definition at line <a class="el" href="../../df/d56/dgr-sink_8h_source.html#l00054">54</a> of file <a class="el" href="../../df/d56/dgr-sink_8h_source.html">dgr-sink.h</a>.</p>
</div><h2 class="groupheader">Member Typedef Documentation</h2>
<a id="aaaeda043e3212ff79237c9eb7f7afa6d" name="aaaeda043e3212ff79237c9eb7f7afa6d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aaaeda043e3212ff79237c9eb7f7afa6d">&#9670;&#160;</a></span>SeqTsSizeCallback</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">typedef void(* ns3::DGRPacketSink::SeqTsSizeCallback) (Ptr&lt; const Packet &gt; p, const Address &amp;from, const Address &amp;to, const SeqTsSizeHeader &amp;header)</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>TracedCallback signature for a reception with addresses and SeqTsSizeHeader. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">p</td><td>The packet received (without the SeqTsSize header) </td></tr>
    <tr><td class="paramname">from</td><td>From address </td></tr>
    <tr><td class="paramname">to</td><td>Local address </td></tr>
    <tr><td class="paramname">header</td><td>The SeqTsSize header </td></tr>
  </table>
  </dd>
</dl>

<p class="definition">Definition at line <a class="el" href="../../df/d56/dgr-sink_8h_source.html#l00095">95</a> of file <a class="el" href="../../df/d56/dgr-sink_8h_source.html">dgr-sink.h</a>.</p>

</div>
</div>
<h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a id="a3aecd00e57b3a656096239773f304c9f" name="a3aecd00e57b3a656096239773f304c9f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3aecd00e57b3a656096239773f304c9f">&#9670;&#160;</a></span>DGRPacketSink()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">ns3::DGRPacketSink::DGRPacketSink </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="../../d3/d89/dgr-sink_8cc_source.html#l00063">63</a> of file <a class="el" href="../../d3/d89/dgr-sink_8cc_source.html">dgr-sink.cc</a>.</p>

<p class="reference">References <a class="el" href="../../df/d56/dgr-sink_8h_source.html#l00165">m_socket</a>, and <a class="el" href="../../df/d56/dgr-sink_8h_source.html#l00169">m_totalRx</a>.</p>

</div>
</div>
<a id="a605c00d50c8640e3dfbbdc517771aec6" name="a605c00d50c8640e3dfbbdc517771aec6"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a605c00d50c8640e3dfbbdc517771aec6">&#9670;&#160;</a></span>~DGRPacketSink()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">ns3::DGRPacketSink::~DGRPacketSink </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="../../d3/d89/dgr-sink_8cc_source.html#l00070">70</a> of file <a class="el" href="../../d3/d89/dgr-sink_8cc_source.html">dgr-sink.cc</a>.</p>

</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a id="adf51db7e24937d3c73a6669de841d61f" name="adf51db7e24937d3c73a6669de841d61f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#adf51db7e24937d3c73a6669de841d61f">&#9670;&#160;</a></span>DoDispose()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void ns3::DGRPacketSink::DoDispose </td>
          <td>(</td>
          <td class="paramtype">void&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="../../d3/d89/dgr-sink_8cc_source.html#l00105">105</a> of file <a class="el" href="../../d3/d89/dgr-sink_8cc_source.html">dgr-sink.cc</a>.</p>

<p class="reference">References <a class="el" href="../../df/d56/dgr-sink_8h_source.html#l00165">m_socket</a>, and <a class="el" href="../../df/d56/dgr-sink_8h_source.html#l00166">m_socketList</a>.</p>

</div>
</div>
<a id="a2a9115096ef93e8b69846aaca86973f6" name="a2a9115096ef93e8b69846aaca86973f6"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a2a9115096ef93e8b69846aaca86973f6">&#9670;&#160;</a></span>GetAcceptedSockets()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">std::list&lt; Ptr&lt; Socket &gt; &gt; ns3::DGRPacketSink::GetAcceptedSockets </td>
          <td>(</td>
          <td class="paramtype">void&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<dl class="section return"><dt>Returns</dt><dd>list of pointers to accepted sockets </dd></dl>

<p class="definition">Definition at line <a class="el" href="../../d3/d89/dgr-sink_8cc_source.html#l00089">89</a> of file <a class="el" href="../../d3/d89/dgr-sink_8cc_source.html">dgr-sink.cc</a>.</p>

<p class="reference">References <a class="el" href="../../df/d56/dgr-sink_8h_source.html#l00166">m_socketList</a>.</p>

</div>
</div>
<a id="a01e725bd9c630ab59e304d7ed5acf8d4" name="a01e725bd9c630ab59e304d7ed5acf8d4"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a01e725bd9c630ab59e304d7ed5acf8d4">&#9670;&#160;</a></span>GetDelay()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">Time ns3::DGRPacketSink::GetDelay </td>
          <td>(</td>
          <td class="paramtype">const Ptr&lt; Packet &gt; &amp;&#160;</td>
          <td class="paramname"><em>p</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<dl class="section author"><dt>Author</dt><dd>Pu Yang </dd></dl>
<dl class="section return"><dt>Returns</dt><dd>the delay information </dd></dl>

<p class="definition">Definition at line <a class="el" href="../../d3/d89/dgr-sink_8cc_source.html#l00095">95</a> of file <a class="el" href="../../d3/d89/dgr-sink_8cc_source.html">dgr-sink.cc</a>.</p>

<p class="reference">Referenced by <a class="el" href="../../d3/d89/dgr-sink_8cc_source.html#l00170">HandleRead()</a>.</p>
<div id="dynsection-2" onclick="return toggleVisibility(this)" class="dynheader closed" style="cursor:pointer;">
  <img id="dynsection-2-trigger" src="../../closed.png" alt="+"/> Here is the caller graph for this function:</div>
<div id="dynsection-2-summary" class="dynsummary" style="display:block;">
</div>
<div id="dynsection-2-content" class="dyncontent" style="display:none;">
<div class="center"><img src="../../dc/d11/classns3_1_1_d_g_r_packet_sink_a01e725bd9c630ab59e304d7ed5acf8d4_icgraph.png" border="0" usemap="#adc/d11/classns3_1_1_d_g_r_packet_sink_a01e725bd9c630ab59e304d7ed5acf8d4_icgraph" alt=""/></div>
<map name="adc/d11/classns3_1_1_d_g_r_packet_sink_a01e725bd9c630ab59e304d7ed5acf8d4_icgraph" id="adc/d11/classns3_1_1_d_g_r_packet_sink_a01e725bd9c630ab59e304d7ed5acf8d4_icgraph">
<area shape="rect" title=" " alt="" coords="605,35,757,75"/>
<area shape="rect" href="../../dc/d11/classns3_1_1_d_g_r_packet_sink.html#a5bc1c04b2b572ae2197853efeceb650e" title="Handle a packet received by the application." alt="" coords="405,35,557,75"/>
<area shape="poly" title=" " alt="" coords="591,57,558,57,558,52,591,52"/>
<area shape="rect" href="../../dc/d11/classns3_1_1_d_g_r_packet_sink.html#a60bdb8ea5bb655c1b77220963b2531d7" title="Handle an incoming connection." alt="" coords="205,5,357,45"/>
<area shape="poly" title=" " alt="" coords="391,44,357,39,358,34,392,39"/>
<area shape="rect" href="../../dc/d11/classns3_1_1_d_g_r_packet_sink.html#abe7e96a9e41ed5e769ffc06a20cc775f" title=" " alt="" coords="5,35,157,75"/>
<area shape="poly" title=" " alt="" coords="391,59,357,60,205,60,158,59,158,54,205,55,357,55,391,54"/>
<area shape="poly" title=" " alt="" coords="192,41,158,46,157,41,191,36"/>
</map>
</div>

</div>
</div>
<a id="ac98581dc7987443224fd7237a12eb006" name="ac98581dc7987443224fd7237a12eb006"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac98581dc7987443224fd7237a12eb006">&#9670;&#160;</a></span>GetListeningSocket()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">Ptr&lt; Socket &gt; ns3::DGRPacketSink::GetListeningSocket </td>
          <td>(</td>
          <td class="paramtype">void&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<dl class="section return"><dt>Returns</dt><dd>pointer to listening socket </dd></dl>

<p class="definition">Definition at line <a class="el" href="../../d3/d89/dgr-sink_8cc_source.html#l00082">82</a> of file <a class="el" href="../../d3/d89/dgr-sink_8cc_source.html">dgr-sink.cc</a>.</p>

<p class="reference">References <a class="el" href="../../df/d56/dgr-sink_8h_source.html#l00165">m_socket</a>.</p>

</div>
</div>
<a id="a69231f2139fbdd7948cff8c9edccdca4" name="a69231f2139fbdd7948cff8c9edccdca4"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a69231f2139fbdd7948cff8c9edccdca4">&#9670;&#160;</a></span>GetTotalRx()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint64_t ns3::DGRPacketSink::GetTotalRx </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<dl class="section return"><dt>Returns</dt><dd>the total bytes received in this sink app </dd></dl>

<p class="definition">Definition at line <a class="el" href="../../d3/d89/dgr-sink_8cc_source.html#l00075">75</a> of file <a class="el" href="../../d3/d89/dgr-sink_8cc_source.html">dgr-sink.cc</a>.</p>

<p class="reference">References <a class="el" href="../../df/d56/dgr-sink_8h_source.html#l00169">m_totalRx</a>.</p>

</div>
</div>
<a id="a558f3df30ebf65ef9ce9d22106fbd8bc" name="a558f3df30ebf65ef9ce9d22106fbd8bc"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a558f3df30ebf65ef9ce9d22106fbd8bc">&#9670;&#160;</a></span>GetTypeId()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">TypeId ns3::DGRPacketSink::GetTypeId </td>
          <td>(</td>
          <td class="paramtype">void&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Get the type ID. </p>
<dl class="section return"><dt>Returns</dt><dd>the object TypeId </dd></dl>

<p class="definition">Definition at line <a class="el" href="../../d3/d89/dgr-sink_8cc_source.html#l00027">27</a> of file <a class="el" href="../../d3/d89/dgr-sink_8cc_source.html">dgr-sink.cc</a>.</p>

<p class="reference">References <a class="el" href="../../df/d56/dgr-sink_8h_source.html#l00175">m_enableSeqTsSizeHeader</a>, <a class="el" href="../../df/d56/dgr-sink_8h_source.html#l00168">m_local</a>, <a class="el" href="../../df/d56/dgr-sink_8h_source.html#l00178">m_rxTrace</a>, <a class="el" href="../../df/d56/dgr-sink_8h_source.html#l00180">m_rxTraceWithAddresses</a>, <a class="el" href="../../df/d56/dgr-sink_8h_source.html#l00182">m_rxTraceWithSeqTsSize</a>, and <a class="el" href="../../df/d56/dgr-sink_8h_source.html#l00170">m_tid</a>.</p>

</div>
</div>
<a id="a60bdb8ea5bb655c1b77220963b2531d7" name="a60bdb8ea5bb655c1b77220963b2531d7"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a60bdb8ea5bb655c1b77220963b2531d7">&#9670;&#160;</a></span>HandleAccept()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void ns3::DGRPacketSink::HandleAccept </td>
          <td>(</td>
          <td class="paramtype">Ptr&lt; Socket &gt;&#160;</td>
          <td class="paramname"><em>socket</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const Address &amp;&#160;</td>
          <td class="paramname"><em>from</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Handle an incoming connection. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">socket</td><td>the incoming connection socket </td></tr>
    <tr><td class="paramname">from</td><td>the address the connection is from </td></tr>
  </table>
  </dd>
</dl>

<p class="definition">Definition at line <a class="el" href="../../d3/d89/dgr-sink_8cc_source.html#l00293">293</a> of file <a class="el" href="../../d3/d89/dgr-sink_8cc_source.html">dgr-sink.cc</a>.</p>

<p class="reference">References <a class="el" href="../../d3/d89/dgr-sink_8cc_source.html#l00170">HandleRead()</a>, and <a class="el" href="../../df/d56/dgr-sink_8h_source.html#l00166">m_socketList</a>.</p>

<p class="reference">Referenced by <a class="el" href="../../d3/d89/dgr-sink_8cc_source.html#l00116">StartApplication()</a>.</p>
<div id="dynsection-3" onclick="return toggleVisibility(this)" class="dynheader closed" style="cursor:pointer;">
  <img id="dynsection-3-trigger" src="../../closed.png" alt="+"/> Here is the call graph for this function:</div>
<div id="dynsection-3-summary" class="dynsummary" style="display:block;">
</div>
<div id="dynsection-3-content" class="dyncontent" style="display:none;">
<div class="center"><img src="../../dc/d11/classns3_1_1_d_g_r_packet_sink_a60bdb8ea5bb655c1b77220963b2531d7_cgraph.png" border="0" usemap="#adc/d11/classns3_1_1_d_g_r_packet_sink_a60bdb8ea5bb655c1b77220963b2531d7_cgraph" alt=""/></div>
<map name="adc/d11/classns3_1_1_d_g_r_packet_sink_a60bdb8ea5bb655c1b77220963b2531d7_cgraph" id="adc/d11/classns3_1_1_d_g_r_packet_sink_a60bdb8ea5bb655c1b77220963b2531d7_cgraph">
<area shape="rect" title="Handle an incoming connection." alt="" coords="5,63,157,103"/>
<area shape="rect" href="../../dc/d11/classns3_1_1_d_g_r_packet_sink.html#a5bc1c04b2b572ae2197853efeceb650e" title="Handle a packet received by the application." alt="" coords="205,63,357,103"/>
<area shape="poly" title=" " alt="" coords="158,80,191,80,191,85,158,85"/>
<area shape="rect" href="../../dc/d11/classns3_1_1_d_g_r_packet_sink.html#a01e725bd9c630ab59e304d7ed5acf8d4" title=" " alt="" coords="411,5,563,45"/>
<area shape="poly" title=" " alt="" coords="353,60,401,47,402,52,354,65"/>
<area shape="rect" href="../../d5/d77/classns3_1_1_flag_tag.html#a1af1deae4da34eb465dd0d18acad52a6" title="Get the tag&#39;s flag." alt="" coords="405,70,568,95"/>
<area shape="poly" title=" " alt="" coords="358,80,392,80,392,85,358,85"/>
<area shape="rect" href="../../dc/d11/classns3_1_1_d_g_r_packet_sink.html#ac45b59904bfc3ab8c3beeafa3b66abfb" title="Packet received: assemble byte stream to extract SeqTsSizeHeader." alt="" coords="411,120,563,160"/>
<area shape="poly" title=" " alt="" coords="354,100,402,114,401,119,353,105"/>
</map>
</div>
<div id="dynsection-4" onclick="return toggleVisibility(this)" class="dynheader closed" style="cursor:pointer;">
  <img id="dynsection-4-trigger" src="../../closed.png" alt="+"/> Here is the caller graph for this function:</div>
<div id="dynsection-4-summary" class="dynsummary" style="display:block;">
</div>
<div id="dynsection-4-content" class="dyncontent" style="display:none;">
<div class="center"><img src="../../dc/d11/classns3_1_1_d_g_r_packet_sink_a60bdb8ea5bb655c1b77220963b2531d7_icgraph.png" border="0" usemap="#adc/d11/classns3_1_1_d_g_r_packet_sink_a60bdb8ea5bb655c1b77220963b2531d7_icgraph" alt=""/></div>
<map name="adc/d11/classns3_1_1_d_g_r_packet_sink_a60bdb8ea5bb655c1b77220963b2531d7_icgraph" id="adc/d11/classns3_1_1_d_g_r_packet_sink_a60bdb8ea5bb655c1b77220963b2531d7_icgraph">
<area shape="rect" title="Handle an incoming connection." alt="" coords="205,5,357,45"/>
<area shape="rect" href="../../dc/d11/classns3_1_1_d_g_r_packet_sink.html#abe7e96a9e41ed5e769ffc06a20cc775f" title=" " alt="" coords="5,5,157,45"/>
<area shape="poly" title=" " alt="" coords="191,28,158,28,158,23,191,23"/>
</map>
</div>

</div>
</div>
<a id="a4cdd5cf57dd8475e5d6656bf877dc220" name="a4cdd5cf57dd8475e5d6656bf877dc220"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a4cdd5cf57dd8475e5d6656bf877dc220">&#9670;&#160;</a></span>HandlePeerClose()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void ns3::DGRPacketSink::HandlePeerClose </td>
          <td>(</td>
          <td class="paramtype">Ptr&lt; Socket &gt;&#160;</td>
          <td class="paramname"><em>socket</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Handle an connection close. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">socket</td><td>the connected socket </td></tr>
  </table>
  </dd>
</dl>

<p class="definition">Definition at line <a class="el" href="../../d3/d89/dgr-sink_8cc_source.html#l00283">283</a> of file <a class="el" href="../../d3/d89/dgr-sink_8cc_source.html">dgr-sink.cc</a>.</p>

<p class="reference">Referenced by <a class="el" href="../../d3/d89/dgr-sink_8cc_source.html#l00116">StartApplication()</a>.</p>
<div id="dynsection-5" onclick="return toggleVisibility(this)" class="dynheader closed" style="cursor:pointer;">
  <img id="dynsection-5-trigger" src="../../closed.png" alt="+"/> Here is the caller graph for this function:</div>
<div id="dynsection-5-summary" class="dynsummary" style="display:block;">
</div>
<div id="dynsection-5-content" class="dyncontent" style="display:none;">
<div class="center"><img src="../../dc/d11/classns3_1_1_d_g_r_packet_sink_a4cdd5cf57dd8475e5d6656bf877dc220_icgraph.png" border="0" usemap="#adc/d11/classns3_1_1_d_g_r_packet_sink_a4cdd5cf57dd8475e5d6656bf877dc220_icgraph" alt=""/></div>
<map name="adc/d11/classns3_1_1_d_g_r_packet_sink_a4cdd5cf57dd8475e5d6656bf877dc220_icgraph" id="adc/d11/classns3_1_1_d_g_r_packet_sink_a4cdd5cf57dd8475e5d6656bf877dc220_icgraph">
<area shape="rect" title="Handle an connection close." alt="" coords="205,5,357,45"/>
<area shape="rect" href="../../dc/d11/classns3_1_1_d_g_r_packet_sink.html#abe7e96a9e41ed5e769ffc06a20cc775f" title=" " alt="" coords="5,5,157,45"/>
<area shape="poly" title=" " alt="" coords="191,28,158,28,158,23,191,23"/>
</map>
</div>

</div>
</div>
<a id="ae1f5b327422a264e50a57a45010c5b95" name="ae1f5b327422a264e50a57a45010c5b95"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae1f5b327422a264e50a57a45010c5b95">&#9670;&#160;</a></span>HandlePeerError()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void ns3::DGRPacketSink::HandlePeerError </td>
          <td>(</td>
          <td class="paramtype">Ptr&lt; Socket &gt;&#160;</td>
          <td class="paramname"><em>socket</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Handle an connection error. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">socket</td><td>the connected socket </td></tr>
  </table>
  </dd>
</dl>

<p class="definition">Definition at line <a class="el" href="../../d3/d89/dgr-sink_8cc_source.html#l00288">288</a> of file <a class="el" href="../../d3/d89/dgr-sink_8cc_source.html">dgr-sink.cc</a>.</p>

<p class="reference">Referenced by <a class="el" href="../../d3/d89/dgr-sink_8cc_source.html#l00116">StartApplication()</a>.</p>
<div id="dynsection-6" onclick="return toggleVisibility(this)" class="dynheader closed" style="cursor:pointer;">
  <img id="dynsection-6-trigger" src="../../closed.png" alt="+"/> Here is the caller graph for this function:</div>
<div id="dynsection-6-summary" class="dynsummary" style="display:block;">
</div>
<div id="dynsection-6-content" class="dyncontent" style="display:none;">
<div class="center"><img src="../../dc/d11/classns3_1_1_d_g_r_packet_sink_ae1f5b327422a264e50a57a45010c5b95_icgraph.png" border="0" usemap="#adc/d11/classns3_1_1_d_g_r_packet_sink_ae1f5b327422a264e50a57a45010c5b95_icgraph" alt=""/></div>
<map name="adc/d11/classns3_1_1_d_g_r_packet_sink_ae1f5b327422a264e50a57a45010c5b95_icgraph" id="adc/d11/classns3_1_1_d_g_r_packet_sink_ae1f5b327422a264e50a57a45010c5b95_icgraph">
<area shape="rect" title="Handle an connection error." alt="" coords="205,5,357,45"/>
<area shape="rect" href="../../dc/d11/classns3_1_1_d_g_r_packet_sink.html#abe7e96a9e41ed5e769ffc06a20cc775f" title=" " alt="" coords="5,5,157,45"/>
<area shape="poly" title=" " alt="" coords="191,28,158,28,158,23,191,23"/>
</map>
</div>

</div>
</div>
<a id="a5bc1c04b2b572ae2197853efeceb650e" name="a5bc1c04b2b572ae2197853efeceb650e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5bc1c04b2b572ae2197853efeceb650e">&#9670;&#160;</a></span>HandleRead()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void ns3::DGRPacketSink::HandleRead </td>
          <td>(</td>
          <td class="paramtype">Ptr&lt; Socket &gt;&#160;</td>
          <td class="paramname"><em>socket</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Handle a packet received by the application. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">socket</td><td>the receiving socket </td></tr>
  </table>
  </dd>
</dl>

<p class="definition">Definition at line <a class="el" href="../../d3/d89/dgr-sink_8cc_source.html#l00170">170</a> of file <a class="el" href="../../d3/d89/dgr-sink_8cc_source.html">dgr-sink.cc</a>.</p>

<p class="reference">References <a class="el" href="../../d3/d89/dgr-sink_8cc_source.html#l00095">GetDelay()</a>, <a class="el" href="../../d1/d14/dgr-tags_8cc_source.html#l00177">ns3::FlagTag::GetFlag()</a>, <a class="el" href="../../d3/d89/dgr-sink_8cc_source.html#l00169">ns3::i</a>, <a class="el" href="../../df/d56/dgr-sink_8h_source.html#l00172">m_delayStream</a>, <a class="el" href="../../df/d56/dgr-sink_8h_source.html#l00175">m_enableSeqTsSizeHeader</a>, <a class="el" href="../../df/d56/dgr-sink_8h_source.html#l00178">m_rxTrace</a>, <a class="el" href="../../df/d56/dgr-sink_8h_source.html#l00180">m_rxTraceWithAddresses</a>, <a class="el" href="../../df/d56/dgr-sink_8h_source.html#l00169">m_totalRx</a>, and <a class="el" href="../../d3/d89/dgr-sink_8cc_source.html#l00244">PacketReceived()</a>.</p>

<p class="reference">Referenced by <a class="el" href="../../d3/d89/dgr-sink_8cc_source.html#l00293">HandleAccept()</a>, and <a class="el" href="../../d3/d89/dgr-sink_8cc_source.html#l00116">StartApplication()</a>.</p>
<div id="dynsection-7" onclick="return toggleVisibility(this)" class="dynheader closed" style="cursor:pointer;">
  <img id="dynsection-7-trigger" src="../../closed.png" alt="+"/> Here is the call graph for this function:</div>
<div id="dynsection-7-summary" class="dynsummary" style="display:block;">
</div>
<div id="dynsection-7-content" class="dyncontent" style="display:none;">
<div class="center"><img src="../../dc/d11/classns3_1_1_d_g_r_packet_sink_a5bc1c04b2b572ae2197853efeceb650e_cgraph.png" border="0" usemap="#adc/d11/classns3_1_1_d_g_r_packet_sink_a5bc1c04b2b572ae2197853efeceb650e_cgraph" alt=""/></div>
<map name="adc/d11/classns3_1_1_d_g_r_packet_sink_a5bc1c04b2b572ae2197853efeceb650e_cgraph" id="adc/d11/classns3_1_1_d_g_r_packet_sink_a5bc1c04b2b572ae2197853efeceb650e_cgraph">
<area shape="rect" title="Handle a packet received by the application." alt="" coords="5,63,157,103"/>
<area shape="rect" href="../../dc/d11/classns3_1_1_d_g_r_packet_sink.html#a01e725bd9c630ab59e304d7ed5acf8d4" title=" " alt="" coords="211,5,363,45"/>
<area shape="poly" title=" " alt="" coords="153,60,201,47,202,52,154,65"/>
<area shape="rect" href="../../d5/d77/classns3_1_1_flag_tag.html#a1af1deae4da34eb465dd0d18acad52a6" title="Get the tag&#39;s flag." alt="" coords="205,70,368,95"/>
<area shape="poly" title=" " alt="" coords="158,80,192,80,192,85,158,85"/>
<area shape="rect" href="../../dc/d11/classns3_1_1_d_g_r_packet_sink.html#ac45b59904bfc3ab8c3beeafa3b66abfb" title="Packet received: assemble byte stream to extract SeqTsSizeHeader." alt="" coords="211,120,363,160"/>
<area shape="poly" title=" " alt="" coords="154,100,202,114,201,119,153,105"/>
</map>
</div>
<div id="dynsection-8" onclick="return toggleVisibility(this)" class="dynheader closed" style="cursor:pointer;">
  <img id="dynsection-8-trigger" src="../../closed.png" alt="+"/> Here is the caller graph for this function:</div>
<div id="dynsection-8-summary" class="dynsummary" style="display:block;">
</div>
<div id="dynsection-8-content" class="dyncontent" style="display:none;">
<div class="center"><img src="../../dc/d11/classns3_1_1_d_g_r_packet_sink_a5bc1c04b2b572ae2197853efeceb650e_icgraph.png" border="0" usemap="#adc/d11/classns3_1_1_d_g_r_packet_sink_a5bc1c04b2b572ae2197853efeceb650e_icgraph" alt=""/></div>
<map name="adc/d11/classns3_1_1_d_g_r_packet_sink_a5bc1c04b2b572ae2197853efeceb650e_icgraph" id="adc/d11/classns3_1_1_d_g_r_packet_sink_a5bc1c04b2b572ae2197853efeceb650e_icgraph">
<area shape="rect" title="Handle a packet received by the application." alt="" coords="405,35,557,75"/>
<area shape="rect" href="../../dc/d11/classns3_1_1_d_g_r_packet_sink.html#a60bdb8ea5bb655c1b77220963b2531d7" title="Handle an incoming connection." alt="" coords="205,5,357,45"/>
<area shape="poly" title=" " alt="" coords="391,44,357,39,358,34,392,39"/>
<area shape="rect" href="../../dc/d11/classns3_1_1_d_g_r_packet_sink.html#abe7e96a9e41ed5e769ffc06a20cc775f" title=" " alt="" coords="5,35,157,75"/>
<area shape="poly" title=" " alt="" coords="391,59,357,60,205,60,158,59,158,54,205,55,357,55,391,54"/>
<area shape="poly" title=" " alt="" coords="192,41,158,46,157,41,191,36"/>
</map>
</div>

</div>
</div>
<a id="ac45b59904bfc3ab8c3beeafa3b66abfb" name="ac45b59904bfc3ab8c3beeafa3b66abfb"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac45b59904bfc3ab8c3beeafa3b66abfb">&#9670;&#160;</a></span>PacketReceived()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void ns3::DGRPacketSink::PacketReceived </td>
          <td>(</td>
          <td class="paramtype">const Ptr&lt; Packet &gt; &amp;&#160;</td>
          <td class="paramname"><em>p</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const Address &amp;&#160;</td>
          <td class="paramname"><em>from</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const Address &amp;&#160;</td>
          <td class="paramname"><em>localAddress</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Packet received: assemble byte stream to extract SeqTsSizeHeader. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">p</td><td>received packet </td></tr>
    <tr><td class="paramname">from</td><td>from address </td></tr>
    <tr><td class="paramname">localAddress</td><td>local address</td></tr>
  </table>
  </dd>
</dl>
<p>The method assembles a received byte stream and extracts SeqTsSizeHeader instances from the stream to export in a trace source. </p>

<p class="definition">Definition at line <a class="el" href="../../d3/d89/dgr-sink_8cc_source.html#l00244">244</a> of file <a class="el" href="../../d3/d89/dgr-sink_8cc_source.html">dgr-sink.cc</a>.</p>

<p class="reference">References <a class="el" href="../../df/d56/dgr-sink_8h_source.html#l00161">m_buffer</a>, and <a class="el" href="../../df/d56/dgr-sink_8h_source.html#l00182">m_rxTraceWithSeqTsSize</a>.</p>

<p class="reference">Referenced by <a class="el" href="../../d3/d89/dgr-sink_8cc_source.html#l00170">HandleRead()</a>.</p>
<div id="dynsection-9" onclick="return toggleVisibility(this)" class="dynheader closed" style="cursor:pointer;">
  <img id="dynsection-9-trigger" src="../../closed.png" alt="+"/> Here is the caller graph for this function:</div>
<div id="dynsection-9-summary" class="dynsummary" style="display:block;">
</div>
<div id="dynsection-9-content" class="dyncontent" style="display:none;">
<div class="center"><img src="../../dc/d11/classns3_1_1_d_g_r_packet_sink_ac45b59904bfc3ab8c3beeafa3b66abfb_icgraph.png" border="0" usemap="#adc/d11/classns3_1_1_d_g_r_packet_sink_ac45b59904bfc3ab8c3beeafa3b66abfb_icgraph" alt=""/></div>
<map name="adc/d11/classns3_1_1_d_g_r_packet_sink_ac45b59904bfc3ab8c3beeafa3b66abfb_icgraph" id="adc/d11/classns3_1_1_d_g_r_packet_sink_ac45b59904bfc3ab8c3beeafa3b66abfb_icgraph">
<area shape="rect" title="Packet received: assemble byte stream to extract SeqTsSizeHeader." alt="" coords="605,35,757,75"/>
<area shape="rect" href="../../dc/d11/classns3_1_1_d_g_r_packet_sink.html#a5bc1c04b2b572ae2197853efeceb650e" title="Handle a packet received by the application." alt="" coords="405,35,557,75"/>
<area shape="poly" title=" " alt="" coords="591,57,558,57,558,52,591,52"/>
<area shape="rect" href="../../dc/d11/classns3_1_1_d_g_r_packet_sink.html#a60bdb8ea5bb655c1b77220963b2531d7" title="Handle an incoming connection." alt="" coords="205,5,357,45"/>
<area shape="poly" title=" " alt="" coords="391,44,357,39,358,34,392,39"/>
<area shape="rect" href="../../dc/d11/classns3_1_1_d_g_r_packet_sink.html#abe7e96a9e41ed5e769ffc06a20cc775f" title=" " alt="" coords="5,35,157,75"/>
<area shape="poly" title=" " alt="" coords="391,59,357,60,205,60,158,59,158,54,205,55,357,55,391,54"/>
<area shape="poly" title=" " alt="" coords="192,41,158,46,157,41,191,36"/>
</map>
</div>

</div>
</div>
<a id="abe7e96a9e41ed5e769ffc06a20cc775f" name="abe7e96a9e41ed5e769ffc06a20cc775f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#abe7e96a9e41ed5e769ffc06a20cc775f">&#9670;&#160;</a></span>StartApplication()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void ns3::DGRPacketSink::StartApplication </td>
          <td>(</td>
          <td class="paramtype">void&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="../../d3/d89/dgr-sink_8cc_source.html#l00116">116</a> of file <a class="el" href="../../d3/d89/dgr-sink_8cc_source.html">dgr-sink.cc</a>.</p>

<p class="reference">References <a class="el" href="../../d3/d89/dgr-sink_8cc_source.html#l00293">HandleAccept()</a>, <a class="el" href="../../d3/d89/dgr-sink_8cc_source.html#l00283">HandlePeerClose()</a>, <a class="el" href="../../d3/d89/dgr-sink_8cc_source.html#l00288">HandlePeerError()</a>, <a class="el" href="../../d3/d89/dgr-sink_8cc_source.html#l00170">HandleRead()</a>, <a class="el" href="../../df/d56/dgr-sink_8h_source.html#l00168">m_local</a>, <a class="el" href="../../df/d56/dgr-sink_8h_source.html#l00165">m_socket</a>, and <a class="el" href="../../df/d56/dgr-sink_8h_source.html#l00170">m_tid</a>.</p>
<div id="dynsection-10" onclick="return toggleVisibility(this)" class="dynheader closed" style="cursor:pointer;">
  <img id="dynsection-10-trigger" src="../../closed.png" alt="+"/> Here is the call graph for this function:</div>
<div id="dynsection-10-summary" class="dynsummary" style="display:block;">
</div>
<div id="dynsection-10-content" class="dyncontent" style="display:none;">
<div class="center"><img src="../../dc/d11/classns3_1_1_d_g_r_packet_sink_abe7e96a9e41ed5e769ffc06a20cc775f_cgraph.png" border="0" usemap="#adc/d11/classns3_1_1_d_g_r_packet_sink_abe7e96a9e41ed5e769ffc06a20cc775f_cgraph" alt=""/></div>
<map name="adc/d11/classns3_1_1_d_g_r_packet_sink_abe7e96a9e41ed5e769ffc06a20cc775f_cgraph" id="adc/d11/classns3_1_1_d_g_r_packet_sink_abe7e96a9e41ed5e769ffc06a20cc775f_cgraph">
<area shape="rect" title=" " alt="" coords="5,120,157,160"/>
<area shape="rect" href="../../dc/d11/classns3_1_1_d_g_r_packet_sink.html#a60bdb8ea5bb655c1b77220963b2531d7" title="Handle an incoming connection." alt="" coords="205,33,357,73"/>
<area shape="poly" title=" " alt="" coords="127,117,221,76,223,81,130,122"/>
<area shape="rect" href="../../dc/d11/classns3_1_1_d_g_r_packet_sink.html#a5bc1c04b2b572ae2197853efeceb650e" title="Handle a packet received by the application." alt="" coords="405,63,557,103"/>
<area shape="poly" title=" " alt="" coords="157,127,392,93,392,98,158,132"/>
<area shape="rect" href="../../dc/d11/classns3_1_1_d_g_r_packet_sink.html#a4cdd5cf57dd8475e5d6656bf877dc220" title="Handle an connection close." alt="" coords="205,148,357,188"/>
<area shape="poly" title=" " alt="" coords="158,148,192,153,191,158,157,153"/>
<area shape="rect" href="../../dc/d11/classns3_1_1_d_g_r_packet_sink.html#ae1f5b327422a264e50a57a45010c5b95" title="Handle an connection error." alt="" coords="205,212,357,252"/>
<area shape="poly" title=" " alt="" coords="124,158,206,198,221,204,218,209,204,202,122,163"/>
<area shape="poly" title=" " alt="" coords="358,62,392,67,391,72,357,67"/>
<area shape="rect" href="../../dc/d11/classns3_1_1_d_g_r_packet_sink.html#a01e725bd9c630ab59e304d7ed5acf8d4" title=" " alt="" coords="611,5,763,45"/>
<area shape="poly" title=" " alt="" coords="553,60,601,47,602,52,554,65"/>
<area shape="rect" href="../../d5/d77/classns3_1_1_flag_tag.html#a1af1deae4da34eb465dd0d18acad52a6" title="Get the tag&#39;s flag." alt="" coords="605,70,768,95"/>
<area shape="poly" title=" " alt="" coords="558,80,592,80,592,85,558,85"/>
<area shape="rect" href="../../dc/d11/classns3_1_1_d_g_r_packet_sink.html#ac45b59904bfc3ab8c3beeafa3b66abfb" title="Packet received: assemble byte stream to extract SeqTsSizeHeader." alt="" coords="611,120,763,160"/>
<area shape="poly" title=" " alt="" coords="554,100,602,114,601,119,553,105"/>
</map>
</div>

</div>
</div>
<a id="aeb7f67c80886d5d2f24c23878f632508" name="aeb7f67c80886d5d2f24c23878f632508"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aeb7f67c80886d5d2f24c23878f632508">&#9670;&#160;</a></span>StopApplication()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void ns3::DGRPacketSink::StopApplication </td>
          <td>(</td>
          <td class="paramtype">void&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="../../d3/d89/dgr-sink_8cc_source.html#l00153">153</a> of file <a class="el" href="../../d3/d89/dgr-sink_8cc_source.html">dgr-sink.cc</a>.</p>

<p class="reference">References <a class="el" href="../../df/d56/dgr-sink_8h_source.html#l00165">m_socket</a>, and <a class="el" href="../../df/d56/dgr-sink_8h_source.html#l00166">m_socketList</a>.</p>

</div>
</div>
<h2 class="groupheader">Member Data Documentation</h2>
<a id="a50309ac35d6ee3c3bf8ed1aac032b18c" name="a50309ac35d6ee3c3bf8ed1aac032b18c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a50309ac35d6ee3c3bf8ed1aac032b18c">&#9670;&#160;</a></span>m_buffer</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">std::unordered_map&lt;Address, Ptr&lt;Packet&gt;, <a class="el" href="../../dc/db3/structns3_1_1_d_g_r_packet_sink_1_1_address_hash.html">AddressHash</a>&gt; ns3::DGRPacketSink::m_buffer</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Buffer for received packets. </p>

<p class="definition">Definition at line <a class="el" href="../../df/d56/dgr-sink_8h_source.html#l00161">161</a> of file <a class="el" href="../../df/d56/dgr-sink_8h_source.html">dgr-sink.h</a>.</p>

<p class="reference">Referenced by <a class="el" href="../../d3/d89/dgr-sink_8cc_source.html#l00244">PacketReceived()</a>.</p>

</div>
</div>
<a id="a2c42e5892ce165db37a2bd47436e4fb8" name="a2c42e5892ce165db37a2bd47436e4fb8"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a2c42e5892ce165db37a2bd47436e4fb8">&#9670;&#160;</a></span>m_delayStream</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">Ptr&lt;OutputStreamWrapper&gt; ns3::DGRPacketSink::m_delayStream</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<b>Initial value:</b><div class="fragment"><div class="line">= Create&lt;OutputStreamWrapper&gt;</div>
<div class="line">  (<span class="stringliteral">&quot;dgr-packet.delay&quot;</span>, std::ios::out)</div>
</div><!-- fragment -->
<p class="definition">Definition at line <a class="el" href="../../df/d56/dgr-sink_8h_source.html#l00172">172</a> of file <a class="el" href="../../df/d56/dgr-sink_8h_source.html">dgr-sink.h</a>.</p>

<p class="reference">Referenced by <a class="el" href="../../d3/d89/dgr-sink_8cc_source.html#l00170">HandleRead()</a>.</p>

</div>
</div>
<a id="ac803f6a1d59503d2a5914f3c9a7f33ec" name="ac803f6a1d59503d2a5914f3c9a7f33ec"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac803f6a1d59503d2a5914f3c9a7f33ec">&#9670;&#160;</a></span>m_enableSeqTsSizeHeader</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">bool ns3::DGRPacketSink::m_enableSeqTsSizeHeader {false}</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Enable or disable the export of SeqTsSize header. </p>

<p class="definition">Definition at line <a class="el" href="../../df/d56/dgr-sink_8h_source.html#l00175">175</a> of file <a class="el" href="../../df/d56/dgr-sink_8h_source.html">dgr-sink.h</a>.</p>

<p class="reference">Referenced by <a class="el" href="../../d3/d89/dgr-sink_8cc_source.html#l00027">GetTypeId()</a>, and <a class="el" href="../../d3/d89/dgr-sink_8cc_source.html#l00170">HandleRead()</a>.</p>

</div>
</div>
<a id="a7f9d4d540e2faa7004c3047913a29f09" name="a7f9d4d540e2faa7004c3047913a29f09"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a7f9d4d540e2faa7004c3047913a29f09">&#9670;&#160;</a></span>m_local</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">Address ns3::DGRPacketSink::m_local</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Local address to bind to. </p>

<p class="definition">Definition at line <a class="el" href="../../df/d56/dgr-sink_8h_source.html#l00168">168</a> of file <a class="el" href="../../df/d56/dgr-sink_8h_source.html">dgr-sink.h</a>.</p>

<p class="reference">Referenced by <a class="el" href="../../d3/d89/dgr-sink_8cc_source.html#l00027">GetTypeId()</a>, and <a class="el" href="../../d3/d89/dgr-sink_8cc_source.html#l00116">StartApplication()</a>.</p>

</div>
</div>
<a id="aca03544d5c0deea1c5f900d89037e8ed" name="aca03544d5c0deea1c5f900d89037e8ed"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aca03544d5c0deea1c5f900d89037e8ed">&#9670;&#160;</a></span>m_rxTrace</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">TracedCallback&lt;Ptr&lt;const Packet&gt;, const Address &amp;&gt; ns3::DGRPacketSink::m_rxTrace</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Traced Callback: received packets, source address. </p>

<p class="definition">Definition at line <a class="el" href="../../df/d56/dgr-sink_8h_source.html#l00178">178</a> of file <a class="el" href="../../df/d56/dgr-sink_8h_source.html">dgr-sink.h</a>.</p>

<p class="reference">Referenced by <a class="el" href="../../d3/d89/dgr-sink_8cc_source.html#l00027">GetTypeId()</a>, and <a class="el" href="../../d3/d89/dgr-sink_8cc_source.html#l00170">HandleRead()</a>.</p>

</div>
</div>
<a id="a79fa3105c5e8709d6d2619a7665ce751" name="a79fa3105c5e8709d6d2619a7665ce751"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a79fa3105c5e8709d6d2619a7665ce751">&#9670;&#160;</a></span>m_rxTraceWithAddresses</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">TracedCallback&lt;Ptr&lt;const Packet&gt;, const Address &amp;, const Address &amp;&gt; ns3::DGRPacketSink::m_rxTraceWithAddresses</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Callback for tracing the packet Rx events, includes source and destination addresses. </p>

<p class="definition">Definition at line <a class="el" href="../../df/d56/dgr-sink_8h_source.html#l00180">180</a> of file <a class="el" href="../../df/d56/dgr-sink_8h_source.html">dgr-sink.h</a>.</p>

<p class="reference">Referenced by <a class="el" href="../../d3/d89/dgr-sink_8cc_source.html#l00027">GetTypeId()</a>, and <a class="el" href="../../d3/d89/dgr-sink_8cc_source.html#l00170">HandleRead()</a>.</p>

</div>
</div>
<a id="a2d3c05d2d32ce064ce1ad0b46564bcfb" name="a2d3c05d2d32ce064ce1ad0b46564bcfb"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a2d3c05d2d32ce064ce1ad0b46564bcfb">&#9670;&#160;</a></span>m_rxTraceWithSeqTsSize</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">TracedCallback&lt;Ptr&lt;const Packet&gt;, const Address &amp;, const Address &amp;, const SeqTsSizeHeader&amp;&gt; ns3::DGRPacketSink::m_rxTraceWithSeqTsSize</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Callbacks for tracing the packet Rx events, includes source, destination addresses, and headers. </p>

<p class="definition">Definition at line <a class="el" href="../../df/d56/dgr-sink_8h_source.html#l00182">182</a> of file <a class="el" href="../../df/d56/dgr-sink_8h_source.html">dgr-sink.h</a>.</p>

<p class="reference">Referenced by <a class="el" href="../../d3/d89/dgr-sink_8cc_source.html#l00027">GetTypeId()</a>, and <a class="el" href="../../d3/d89/dgr-sink_8cc_source.html#l00244">PacketReceived()</a>.</p>

</div>
</div>
<a id="a253617e51eb9048d70dca28e2cb2806b" name="a253617e51eb9048d70dca28e2cb2806b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a253617e51eb9048d70dca28e2cb2806b">&#9670;&#160;</a></span>m_socket</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">Ptr&lt;Socket&gt; ns3::DGRPacketSink::m_socket</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Listening socket. </p>

<p class="definition">Definition at line <a class="el" href="../../df/d56/dgr-sink_8h_source.html#l00165">165</a> of file <a class="el" href="../../df/d56/dgr-sink_8h_source.html">dgr-sink.h</a>.</p>

<p class="reference">Referenced by <a class="el" href="../../d3/d89/dgr-sink_8cc_source.html#l00063">DGRPacketSink()</a>, <a class="el" href="../../d3/d89/dgr-sink_8cc_source.html#l00105">DoDispose()</a>, <a class="el" href="../../d3/d89/dgr-sink_8cc_source.html#l00082">GetListeningSocket()</a>, <a class="el" href="../../d3/d89/dgr-sink_8cc_source.html#l00116">StartApplication()</a>, and <a class="el" href="../../d3/d89/dgr-sink_8cc_source.html#l00153">StopApplication()</a>.</p>

</div>
</div>
<a id="a1d21d3eae077fdf088eda04bf2652d97" name="a1d21d3eae077fdf088eda04bf2652d97"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a1d21d3eae077fdf088eda04bf2652d97">&#9670;&#160;</a></span>m_socketList</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">std::list&lt;Ptr&lt;Socket&gt; &gt; ns3::DGRPacketSink::m_socketList</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>the accepted sockets </p>

<p class="definition">Definition at line <a class="el" href="../../df/d56/dgr-sink_8h_source.html#l00166">166</a> of file <a class="el" href="../../df/d56/dgr-sink_8h_source.html">dgr-sink.h</a>.</p>

<p class="reference">Referenced by <a class="el" href="../../d3/d89/dgr-sink_8cc_source.html#l00105">DoDispose()</a>, <a class="el" href="../../d3/d89/dgr-sink_8cc_source.html#l00089">GetAcceptedSockets()</a>, <a class="el" href="../../d3/d89/dgr-sink_8cc_source.html#l00293">HandleAccept()</a>, and <a class="el" href="../../d3/d89/dgr-sink_8cc_source.html#l00153">StopApplication()</a>.</p>

</div>
</div>
<a id="a5df24d6eacd919ec2f0f944d520cb535" name="a5df24d6eacd919ec2f0f944d520cb535"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5df24d6eacd919ec2f0f944d520cb535">&#9670;&#160;</a></span>m_tid</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">TypeId ns3::DGRPacketSink::m_tid</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Protocol TypeId. </p>

<p class="definition">Definition at line <a class="el" href="../../df/d56/dgr-sink_8h_source.html#l00170">170</a> of file <a class="el" href="../../df/d56/dgr-sink_8h_source.html">dgr-sink.h</a>.</p>

<p class="reference">Referenced by <a class="el" href="../../d3/d89/dgr-sink_8cc_source.html#l00027">GetTypeId()</a>, and <a class="el" href="../../d3/d89/dgr-sink_8cc_source.html#l00116">StartApplication()</a>.</p>

</div>
</div>
<a id="aa1eed0d34ee99dbaea2af47a795b70ca" name="aa1eed0d34ee99dbaea2af47a795b70ca"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa1eed0d34ee99dbaea2af47a795b70ca">&#9670;&#160;</a></span>m_totalRx</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">uint64_t ns3::DGRPacketSink::m_totalRx</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Total bytes received. </p>

<p class="definition">Definition at line <a class="el" href="../../df/d56/dgr-sink_8h_source.html#l00169">169</a> of file <a class="el" href="../../df/d56/dgr-sink_8h_source.html">dgr-sink.h</a>.</p>

<p class="reference">Referenced by <a class="el" href="../../d3/d89/dgr-sink_8cc_source.html#l00063">DGRPacketSink()</a>, <a class="el" href="../../d3/d89/dgr-sink_8cc_source.html#l00075">GetTotalRx()</a>, and <a class="el" href="../../d3/d89/dgr-sink_8cc_source.html#l00170">HandleRead()</a>.</p>

</div>
</div>
<hr/>The documentation for this class was generated from the following files:<ul>
<li>model/<a class="el" href="../../df/d56/dgr-sink_8h_source.html">dgr-sink.h</a></li>
<li>model/<a class="el" href="../../d3/d89/dgr-sink_8cc_source.html">dgr-sink.cc</a></li>
</ul>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="../../d7/d2e/namespacens3.html">ns3</a></li><li class="navelem"><a class="el" href="../../dc/d11/classns3_1_1_d_g_r_packet_sink.html">DGRPacketSink</a></li>
    <li class="footer">Generated by <a href="https://www.doxygen.org/index.html"><img class="footer" src="../../doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.7 </li>
  </ul>
</div>
</body>
</html>
